#ifndef PLACA_H
#define PLACA_H


#include "Object3D.h"
#include "mesh.h"

class placa : public Object3D
{
    Q_OBJECT

    int indexList;

    mesh malha;
    int nNosX;
    int nNosY;
    bool meshControl;

public:
    explicit placa(const QVector3D& center = QVector3D(),
                    QObject *parent = 0);

    void setMeshControl(bool);

private:
    void origin();
    void drawDeformedMesh();
    void drawMesh();
    void computeDeslocation();
    void createMesh();
    void boundaryCondition();


protected:
    virtual void drawGeometry();



};

#endif // placa_H
